import request from '@/utils/request'

// 获取人员列表
export const getMemberListApi = (params) => request({
  url: '/owners/member',
  method: 'get',
  params
})

// 新增人员
export const addMemberApi = (data) => request({
  url: '/owners/member',
  method: 'post',
  data
})

// 获取人员信息
export const getMemberApi = (id) => request({
  url: '/owners/member/' + id,
  method: 'get'
})

// 修改人员
export const editMemberApi = (data) => request({
  url: '/owners/member/' + data.id,
  method: 'put',
  data
})

// 删除人员
export const delMemberApi = (id) => request({
  url: '/owners/member/' + id,
  method: 'delete'
})